home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Web Graphics with Shout 3D
/
Interactive Web Graphics With Shout 3D.iso
/
pc
/
Shout3Ddemo
/
Shout3d_runtime
/
codebase
/
models
/
renderTests
/
faceSetCombinations.wrl
< prev
next >
Wrap
Text File
|
2000-11-10
|
11KB
|
408 lines
#VRML V2.0 utf8
# back left -> right
# advance forwards
# 1 No appearance
# 2 Empty Appearance
# 3 Diffuse
# 4 Diffuse + Emissive
# 5 Diffuse + Transparency
# 6
DEF Camera01 Viewpoint {
position 0.0435 186 67.3
orientation 1 -0.000461 -0.000317 -1.2
fieldOfView 0.602
description "Camera01"
}
NavigationInfo { headlight TRUE }
DEF WORLDTRANSFORM Transform {
translation 0 0 -150
children [
# 1 No Appearance Box
DEF NoAppBox Transform {
translation -80 0 -20
children [
Shape {
geometry IndexedFaceSet {
coord Coordinate { point [
-10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10,
-10 20 -10, 10 20 -10]
}
coordIndex [
0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1,
5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1,
6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
}
}
]
}
# 2 Empty Appearance Box
DEF EmptyAppBox Transform {
translation -40 0 -20
children [
Shape {
appearance Appearance {}
geometry IndexedFaceSet {
coord Coordinate { point [
-10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10,
-10 20 -10, 10 20 -10]
}
coordIndex [
0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1,
5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1,
6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
}
}
]
}
# 3 Diffuse Shaded Box
DEF DiffuseBox Transform {
translation 0 0 -20
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.9 0.9 0.9
}
}
geometry IndexedFaceSet {
ccw TRUE
solid TRUE
coord Coordinate { point [
-10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10,
-10 20 -10, 10 20 -10]
}
coordIndex [
0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1,
5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1,
6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
}
}
]
}
# 4 Diffuse + Emissive Shaded Box
DEF DiffuseEmissiveBox Transform {
translation 40 0 -20
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 1
emissiveColor 1 0 0
}
}
geometry IndexedFaceSet {
ccw TRUE
solid TRUE
coord Coordinate { point [
-10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10,
-10 20 -10, 10 20 -10]
}
coordIndex [
0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1,
5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1,
6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
}
}
]
}
# 5 Diffuse + Transparency Shaded Box
DEF DiffuseTransparencyBox Transform {
translation 80 0 -20
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.9 0.9 0.9
transparency 0.8
}
}
geometry IndexedFaceSet {
coord Coordinate { point [
-10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10,
-10 20 -10, 10 20 -10]
}
coordIndex [
0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1,
5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1,
6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
}
}
]
}
# Invalid URL Textured Box
DEF InvalidURLTexturedBox Transform {
translation -80 0 20
children [
Shape {
appearance Appearance {
texture ImageTexture {
url "blahblahblah.jpg" # <- does not exist
}
}
geometry DEF InvalidURLTexturedBoxIFS IndexedFaceSet {
coord DEF Box03-COORD Coordinate { point [
-10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10,
-10 20 -10, 10 20 -10]
}
texCoord TextureCoordinate { point [
0 0, 0 1, 1 1, 1 0 ]
}
coordIndex [
0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1,
5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1,
6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
texCoordIndex [
0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
0, 1, 2, -1 0, 1, 2, -1
]
}
}
]
}
# No texCoord Textured Box
DEF TexturedBox Transform {
translation -40 0 20
children [
Shape {
appearance Appearance {
texture ImageTexture {
url "checker.jpg"
}
}
geometry IndexedFaceSet {
coord Coordinate { point [
-10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10,
-10 20 -10, 10 20 -10]
}
coordIndex [
0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1,
5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1,
6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
}
}
]
}
# Textured Box
DEF TexturedBox Transform {
translation 0 0 20
children [
Shape {
appearance Appearance {
texture ImageTexture {
url "checker.jpg"
}
}
geometry IndexedFaceSet {
coord Coordinate { point [
-10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10,
-10 20 -10, 10 20 -10]
}
texCoord TextureCoordinate { point [
0 0, 0 1, 1 1, 1 0 ]
}
coordIndex [
0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1,
5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1,
6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
texCoordIndex [
0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
0, 1, 2, -1 0, 1, 2, -1
]
}
}
]
}
# Repeat Textured Box
DEF RepeatTexturedBox Transform {
translation 40 0 20
children [
Shape {
appearance Appearance {
texture ImageTexture {
url "checker.jpg"
}
}
geometry IndexedFaceSet {
coord Coordinate { point [
-10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10,
-10 20 -10, 10 20 -10]
}
texCoord TextureCoordinate { point [
-1 -1, -1 2, 2 2, 2 -1 ]
}
coordIndex [
0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1,
5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1,
6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
texCoordIndex [
0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
0, 1, 2, -1 0, 1, 2, -1
]
}
}
]
}
# Clamp Textured Box
DEF ClampTexturedBox Transform {
translation 80 0 20
children [
Shape {
appearance Appearance {
texture ImageTexture {
repeatS FALSE
repeatT FALSE
url "checker.jpg"
}
}
geometry IndexedFaceSet {
coord Coordinate { point [
-10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10,
-10 20 -10, 10 20 -10]
}
texCoord TextureCoordinate { point [
-1 -1, -1 2, 2 2, 2 -1 ]
}
coordIndex [
0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1,
5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1,
6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
texCoordIndex [
0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
0, 1, 2, -1 0, 1, 2, -1
]
}
}
]
}
# Diffuse Color Modulated Textured Box
DEF DiffuseColorModTexturedBox Transform {
translation 0 0 60
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
}
texture ImageTexture {
url "checker.jpg"
}
}
geometry IndexedFaceSet {
coord Coordinate { point [
-10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10,
-10 20 -10, 10 20 -10]
}
texCoord TextureCoordinate { point [
0 0, 0 1, 1 1, 1 0 ]
}
coordIndex [
0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1,
5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1,
6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
texCoordIndex [
0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
0, 1, 2, -1 0, 1, 2, -1
]
}
}
]
}
# Diffuse + Emissive Color Modulated Textured Box
DEF DiffuseEmissiveColorModTexturedBox Transform {
translation 40 0 60
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
emissiveColor 0 0.8 0
}
texture ImageTexture {
url "checker.jpg"
}
}
geometry IndexedFaceSet {
coord Coordinate { point [
-10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10,
-10 20 -10, 10 20 -10]
}
texCoord TextureCoordinate { point [
0 0, 0 1, 1 1, 1 0 ]
}
coordIndex [
0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1,
5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1,
6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
texCoordIndex [
0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
0, 1, 2, -1 0, 1, 2, -1
]
}
}
]
}
# Diffuse Color Modulated With Transparency Textured Box
DEF DiffuseColorModTransparencyTexturedBox Transform {
translation 80 0 60
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
transparency 0.75
}
texture ImageTexture {
url "checker.jpg"
}
}
geometry IndexedFaceSet {
coord Coordinate { point [
-10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10,
-10 20 -10, 10 20 -10]
}
texCoord TextureCoordinate { point [
0 0, 0 1, 1 1, 1 0 ]
}
coordIndex [
0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1,
5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1,
6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
texCoordIndex [
0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
0, 1, 2, -1 0, 1, 2, -1
]
}
}
]
}
]
}